package com.itqf.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.itqf.entity.SysUser;
import com.itqf.mapper.SysUserMapper;
import com.itqf.service.SysUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2020/10/19
 * @Time: 下午4:51
 */
@Service
public class SysUserServiceImpl implements SysUserService {

    @Resource
    private SysUserMapper sysUserMapper;

    @Override
    public SysUser login(String username) {
        QueryWrapper<SysUser> wrapper = new QueryWrapper<>();
         wrapper.eq("username",username);
        return sysUserMapper.selectOne(wrapper);
    }
}
